﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

/// <summary>
/// 车辆信息表基础输入参数
/// </summary>
public class AppVehicleInfoBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 卖家Id
    /// </summary>
    [Required(ErrorMessage = "卖家Id不能为空")]
    public virtual long? SellerId { get; set; }
    
    /// <summary>
    /// 标题
    /// </summary>
    [Required(ErrorMessage = "标题不能为空")]
    public virtual string Title { get; set; }
    
    /// <summary>
    /// 品牌Id
    /// </summary>
    [Required(ErrorMessage = "品牌Id不能为空")]
    public virtual long? BrandId { get; set; }
    
    /// <summary>
    /// 车系Id
    /// </summary>
    [Required(ErrorMessage = "车系Id不能为空")]
    public virtual long? SeriesId { get; set; }
    
    /// <summary>
    /// 车型Id
    /// </summary>
    [Required(ErrorMessage = "车型Id不能为空")]
    public virtual long? ModelId { get; set; }
    
    /// <summary>
    /// 价格
    /// </summary>
    [Required(ErrorMessage = "价格不能为空")]
    public virtual decimal? Price { get; set; }
    
    /// <summary>
    /// 新车指导价
    /// </summary>
    public virtual decimal? OriginalPrice { get; set; }
    
    /// <summary>
    /// 里程数
    /// </summary>
    [Required(ErrorMessage = "里程数不能为空")]
    public virtual int? Mileage { get; set; }
    
    /// <summary>
    /// 车辆类型
    /// </summary>
    [Required(ErrorMessage = "车辆类型不能为空")]
    public virtual string VehicleType { get; set; }
    
    /// <summary>
    /// 变速箱类型
    /// </summary>
    [Required(ErrorMessage = "变速箱类型不能为空")]
    public virtual string Transmission { get; set; }
    
    /// <summary>
    /// 燃油类型
    /// </summary>
    [Required(ErrorMessage = "燃油类型不能为空")]
    public virtual string FuelType { get; set; }
    
    /// <summary>
    /// 排放标准
    /// </summary>
    public virtual string? EmissionStandard { get; set; }
    
    /// <summary>
    /// 车况等级
    /// </summary>
    [Required(ErrorMessage = "车况等级不能为空")]
    public virtual int? ConditionLevel { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Required(ErrorMessage = "状态不能为空")]
    public virtual int? Status { get; set; }
    
}

/// <summary>
/// 车辆信息表分页查询输入参数
/// </summary>
public class PageAppVehicleInfoInput : BasePageInput
{
    /// <summary>
    /// 卖家Id
    /// </summary>
    public long? SellerId { get; set; }
    
    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; }
    
    /// <summary>
    /// 品牌Id
    /// </summary>
    public long? BrandId { get; set; }
    
    /// <summary>
    /// 车系Id
    /// </summary>
    public long? SeriesId { get; set; }
    
    /// <summary>
    /// 车型Id
    /// </summary>
    public long? ModelId { get; set; }
    
    /// <summary>
    /// 价格
    /// </summary>
    public decimal? Price { get; set; }
    
    /// <summary>
    /// 新车指导价
    /// </summary>
    public decimal? OriginalPrice { get; set; }
    
    /// <summary>
    /// 里程数
    /// </summary>
    public int? Mileage { get; set; }
    
    /// <summary>
    /// 车辆类型
    /// </summary>
    public string VehicleType { get; set; }
    
    /// <summary>
    /// 变速箱类型
    /// </summary>
    public string Transmission { get; set; }
    
    /// <summary>
    /// 燃油类型
    /// </summary>
    public string FuelType { get; set; }
    
    /// <summary>
    /// 排放标准
    /// </summary>
    public string? EmissionStandard { get; set; }
    
    /// <summary>
    /// 车况等级
    /// </summary>
    public int? ConditionLevel { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    public int? Status { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 车辆信息表增加输入参数
/// </summary>
public class AddAppVehicleInfoInput
{
    /// <summary>
    /// 卖家Id
    /// </summary>
    [Required(ErrorMessage = "卖家Id不能为空")]
    public long? SellerId { get; set; }
    
    /// <summary>
    /// 标题
    /// </summary>
    [Required(ErrorMessage = "标题不能为空")]
    [MaxLength(100, ErrorMessage = "标题字符长度不能超过100")]
    public string Title { get; set; }
    
    /// <summary>
    /// 品牌Id
    /// </summary>
    [Required(ErrorMessage = "品牌Id不能为空")]
    public long? BrandId { get; set; }
    
    /// <summary>
    /// 车系Id
    /// </summary>
    [Required(ErrorMessage = "车系Id不能为空")]
    public long? SeriesId { get; set; }
    
    /// <summary>
    /// 车型Id
    /// </summary>
    [Required(ErrorMessage = "车型Id不能为空")]
    public long? ModelId { get; set; }
    
    /// <summary>
    /// 价格
    /// </summary>
    [Required(ErrorMessage = "价格不能为空")]
    public decimal? Price { get; set; }
    
    /// <summary>
    /// 新车指导价
    /// </summary>
    public decimal? OriginalPrice { get; set; }
    
    /// <summary>
    /// 里程数
    /// </summary>
    [Required(ErrorMessage = "里程数不能为空")]
    public int? Mileage { get; set; }
    
    /// <summary>
    /// 车辆类型
    /// </summary>
    [Required(ErrorMessage = "车辆类型不能为空")]
    [MaxLength(20, ErrorMessage = "车辆类型字符长度不能超过20")]
    public string VehicleType { get; set; }
    
    /// <summary>
    /// 变速箱类型
    /// </summary>
    [Required(ErrorMessage = "变速箱类型不能为空")]
    [MaxLength(20, ErrorMessage = "变速箱类型字符长度不能超过20")]
    public string Transmission { get; set; }
    
    /// <summary>
    /// 燃油类型
    /// </summary>
    [Required(ErrorMessage = "燃油类型不能为空")]
    [MaxLength(20, ErrorMessage = "燃油类型字符长度不能超过20")]
    public string FuelType { get; set; }
    
    /// <summary>
    /// 排放标准
    /// </summary>
    [MaxLength(20, ErrorMessage = "排放标准字符长度不能超过20")]
    public string? EmissionStandard { get; set; }
    
    /// <summary>
    /// 车况等级
    /// </summary>
    [Required(ErrorMessage = "车况等级不能为空")]
    public int? ConditionLevel { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Required(ErrorMessage = "状态不能为空")]
    public int? Status { get; set; }
    
}

/// <summary>
/// 车辆信息表删除输入参数
/// </summary>
public class DeleteAppVehicleInfoInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 车辆信息表更新输入参数
/// </summary>
public class UpdateAppVehicleInfoInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 卖家Id
    /// </summary>    
    [Required(ErrorMessage = "卖家Id不能为空")]
    public long? SellerId { get; set; }
    
    /// <summary>
    /// 标题
    /// </summary>    
    [Required(ErrorMessage = "标题不能为空")]
    [MaxLength(100, ErrorMessage = "标题字符长度不能超过100")]
    public string Title { get; set; }
    
    /// <summary>
    /// 品牌Id
    /// </summary>    
    [Required(ErrorMessage = "品牌Id不能为空")]
    public long? BrandId { get; set; }
    
    /// <summary>
    /// 车系Id
    /// </summary>    
    [Required(ErrorMessage = "车系Id不能为空")]
    public long? SeriesId { get; set; }
    
    /// <summary>
    /// 车型Id
    /// </summary>    
    [Required(ErrorMessage = "车型Id不能为空")]
    public long? ModelId { get; set; }
    
    /// <summary>
    /// 价格
    /// </summary>    
    [Required(ErrorMessage = "价格不能为空")]
    public decimal? Price { get; set; }
    
    /// <summary>
    /// 新车指导价
    /// </summary>    
    public decimal? OriginalPrice { get; set; }
    
    /// <summary>
    /// 里程数
    /// </summary>    
    [Required(ErrorMessage = "里程数不能为空")]
    public int? Mileage { get; set; }
    
    /// <summary>
    /// 车辆类型
    /// </summary>    
    [Required(ErrorMessage = "车辆类型不能为空")]
    [MaxLength(20, ErrorMessage = "车辆类型字符长度不能超过20")]
    public string VehicleType { get; set; }
    
    /// <summary>
    /// 变速箱类型
    /// </summary>    
    [Required(ErrorMessage = "变速箱类型不能为空")]
    [MaxLength(20, ErrorMessage = "变速箱类型字符长度不能超过20")]
    public string Transmission { get; set; }
    
    /// <summary>
    /// 燃油类型
    /// </summary>    
    [Required(ErrorMessage = "燃油类型不能为空")]
    [MaxLength(20, ErrorMessage = "燃油类型字符长度不能超过20")]
    public string FuelType { get; set; }
    
    /// <summary>
    /// 排放标准
    /// </summary>    
    [MaxLength(20, ErrorMessage = "排放标准字符长度不能超过20")]
    public string? EmissionStandard { get; set; }
    
    /// <summary>
    /// 车况等级
    /// </summary>    
    [Required(ErrorMessage = "车况等级不能为空")]
    public int? ConditionLevel { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>    
    [Required(ErrorMessage = "状态不能为空")]
    public int? Status { get; set; }
    
}

/// <summary>
/// 车辆信息表主键查询输入参数
/// </summary>
public class QueryByIdAppVehicleInfoInput : DeleteAppVehicleInfoInput
{
}

/// <summary>
/// 车辆信息表数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportAppVehicleInfoInput : BaseImportInput
{
    /// <summary>
    /// 卖家Id
    /// </summary>
    [ImporterHeader(Name = "*卖家Id")]
    [ExporterHeader("*卖家Id", Format = "", Width = 25, IsBold = true)]
    public long? SellerId { get; set; }
    
    /// <summary>
    /// 标题
    /// </summary>
    [ImporterHeader(Name = "*标题")]
    [ExporterHeader("*标题", Format = "", Width = 25, IsBold = true)]
    public string Title { get; set; }
    
    /// <summary>
    /// 品牌Id
    /// </summary>
    [ImporterHeader(Name = "*品牌Id")]
    [ExporterHeader("*品牌Id", Format = "", Width = 25, IsBold = true)]
    public long? BrandId { get; set; }
    
    /// <summary>
    /// 车系Id
    /// </summary>
    [ImporterHeader(Name = "*车系Id")]
    [ExporterHeader("*车系Id", Format = "", Width = 25, IsBold = true)]
    public long? SeriesId { get; set; }
    
    /// <summary>
    /// 车型Id
    /// </summary>
    [ImporterHeader(Name = "*车型Id")]
    [ExporterHeader("*车型Id", Format = "", Width = 25, IsBold = true)]
    public long? ModelId { get; set; }
    
    /// <summary>
    /// 价格
    /// </summary>
    [ImporterHeader(Name = "*价格")]
    [ExporterHeader("*价格", Format = "", Width = 25, IsBold = true)]
    public decimal? Price { get; set; }
    
    /// <summary>
    /// 新车指导价
    /// </summary>
    [ImporterHeader(Name = "新车指导价")]
    [ExporterHeader("新车指导价", Format = "", Width = 25, IsBold = true)]
    public decimal? OriginalPrice { get; set; }
    
    /// <summary>
    /// 里程数
    /// </summary>
    [ImporterHeader(Name = "*里程数")]
    [ExporterHeader("*里程数", Format = "", Width = 25, IsBold = true)]
    public int? Mileage { get; set; }
    
    /// <summary>
    /// 车辆类型
    /// </summary>
    [ImporterHeader(Name = "*车辆类型")]
    [ExporterHeader("*车辆类型", Format = "", Width = 25, IsBold = true)]
    public string VehicleType { get; set; }
    
    /// <summary>
    /// 变速箱类型
    /// </summary>
    [ImporterHeader(Name = "*变速箱类型")]
    [ExporterHeader("*变速箱类型", Format = "", Width = 25, IsBold = true)]
    public string Transmission { get; set; }
    
    /// <summary>
    /// 燃油类型
    /// </summary>
    [ImporterHeader(Name = "*燃油类型")]
    [ExporterHeader("*燃油类型", Format = "", Width = 25, IsBold = true)]
    public string FuelType { get; set; }
    
    /// <summary>
    /// 排放标准
    /// </summary>
    [ImporterHeader(Name = "排放标准")]
    [ExporterHeader("排放标准", Format = "", Width = 25, IsBold = true)]
    public string? EmissionStandard { get; set; }
    
    /// <summary>
    /// 车况等级
    /// </summary>
    [ImporterHeader(Name = "*车况等级")]
    [ExporterHeader("*车况等级", Format = "", Width = 25, IsBold = true)]
    public int? ConditionLevel { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [ImporterHeader(Name = "*状态")]
    [ExporterHeader("*状态", Format = "", Width = 25, IsBold = true)]
    public int? Status { get; set; }
    
}
